package com.jy.servlet;

import com.mysql.cj.Session;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

public class searchServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("进来了搜索的配置页面");
        String name = request.getParameter("search_name");
        HttpSession session = request.getSession();
        session.setAttribute("name", name);
        request.getRequestDispatcher("/search.jsp").forward(request,response);
    }
}
